const http = uni.$u.http

// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
// 登录
export const login = data => http.post('/login', data)
//足球赔率差方案列表
export const getFootballList = data => http.post('/had-list', data)
//足球赔率差【详情查看】
export const getFootballDetail = data => http.post('/had-child-list', data)
//足球赔率差子方案【处理】
export const getFootballHandle = data => http.post('/had-child-submit', data)
//足球赔率差子方案【查看】
export const getFootballChildDetail = data => http.post('/had-child-info', data)
//单边进球数方案列表
export const getSingleList = data => http.post('/ttg-list', data)
//单边进球数【详情查看】
export const getSingleDetail = data => http.post('/ttg-child-list', data)
///单边进球数子方案【处理】
export const getSingleHandle = data => http.post('/ttg-child-submit', data)
//单边进球数子方案【查看】
export const getSingleChildDetail = data => http.post('/ttg-child-info', data)
//篮球盘口差方案列表
export const getBasketballList = data => http.post('/hilo-list', data)
// 篮球盘口差【详情查看】
export const getBasketballDetail = data => http.post('/hilo-child-list', data)
// 篮球盘口差子方案【处理】
export const getBasketballHandle = data => http.post('/hilo-child-submit', data)
// 篮球盘口差子方案【查看】
export const getBasketballChildDetail = data =>
	http.post('/hilo-child-info', data)
export const planList = (type, data) => http.post(`/${type}`, data)
